home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / mx / core / UITextField.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  23.2 KB  |  862 lines

  1. package mx.core
  2. {
  3.    import flash.display.DisplayObject;
  4.    import flash.display.DisplayObjectContainer;
  5.    import flash.display.Sprite;
  6.    import flash.events.Event;
  7.    import flash.system.ApplicationDomain;
  8.    import flash.text.TextFormat;
  9.    import flash.text.TextLineMetrics;
  10.    import flash.utils.getQualifiedClassName;
  11.    import mx.automation.IAutomationObject;
  12.    import mx.managers.ISystemManager;
  13.    import mx.managers.IToolTipManagerClient;
  14.    import mx.managers.SystemManager;
  15.    import mx.managers.ToolTipManager;
  16.    import mx.resources.ResourceBundle;
  17.    import mx.styles.ISimpleStyleClient;
  18.    import mx.styles.IStyleClient;
  19.    import mx.styles.StyleManager;
  20.    import mx.styles.StyleProtoChain;
  21.    import mx.utils.StringUtil;
  22.    
  23.    use namespace mx_internal;
  24.    
  25.    public class UITextField extends FlexTextField implements IAutomationObject, IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUIComponent
  26.    {
  27.       private static var resourceTruncationIndicator:String;
  28.       
  29.       mx_internal static const VERSION:String = "2.0.1.0";
  30.       
  31.       private static var packageResources:ResourceBundle = ResourceBundle.getResourceBundle("core",ApplicationDomain.currentDomain);
  32.       
  33.       mx_internal static const TEXT_WIDTH_PADDING:int = 5;
  34.       
  35.       mx_internal static const TEXT_HEIGHT_PADDING:int = 4;
  36.       
  37.       loadResources();
  38.       
  39.       private var _initialized:Boolean = false;
  40.       
  41.       private var invalidateDisplayListFlag:Boolean = true;
  42.       
  43.       mx_internal var explicitColor:uint = 4294967295;
  44.       
  45.       private var _processedDescriptors:Boolean = true;
  46.       
  47.       private var explicitHTMLText:String = null;
  48.       
  49.       private var _owner:DisplayObjectContainer;
  50.       
  51.       mx_internal var _parent:DisplayObjectContainer;
  52.       
  53.       mx_internal var styleChangedFlag:Boolean = true;
  54.       
  55.       private var _explicitWidth:Number;
  56.       
  57.       private var _enabled:Boolean = true;
  58.       
  59.       private var cachedTextFormat:TextFormat;
  60.       
  61.       private var _automationDelegate:IAutomationObject;
  62.       
  63.       private var _automationName:String;
  64.       
  65.       private var _document:Object;
  66.       
  67.       private var _styleName:Object;
  68.       
  69.       private var _nestLevel:int = 0;
  70.       
  71.       private var _explicitHeight:Number;
  72.       
  73.       private var _toolTip:String;
  74.       
  75.       private var _nonInheritingStyles:Object;
  76.       
  77.       private var _moduleFactory:IFlexModuleFactory;
  78.       
  79.       private var _inheritingStyles:Object;
  80.       
  81.       private var _includeInLayout:Boolean = true;
  82.       
  83.       private var _updateCompletePendingFlag:Boolean = false;
  84.       
  85.       private var _imeMode:String = null;
  86.       
  87.       private var _ignorePadding:Boolean = true;
  88.       
  89.       public function UITextField()
  90.       {
  91.          invalidateDisplayListFlag = true;
  92.          mx_internal::styleChangedFlag = true;
  93.          explicitHTMLText = null;
  94.          mx_internal::explicitColor = StyleManager.NOT_A_COLOR;
  95.          _enabled = true;
  96.          _ignorePadding = true;
  97.          _imeMode = null;
  98.          _includeInLayout = true;
  99.          _inheritingStyles = UIComponent.mx_internal::STYLE_UNINITIALIZED;
  100.          _initialized = false;
  101.          _nestLevel = 0;
  102.          _nonInheritingStyles = UIComponent.mx_internal::STYLE_UNINITIALIZED;
  103.          _processedDescriptors = true;
  104.          _updateCompletePendingFlag = false;
  105.          super();
  106.          focusRect = false;
  107.          selectable = false;
  108.          tabEnabled = false;
  109.          addEventListener(Event.CHANGE,changeHandler);
  110.          addEventListener("textFieldStyleChange",textFieldStyleChangeHandler);
  111.       }
  112.       
  113.       private static function loadResources() : void
  114.       {
  115.          resourceTruncationIndicator = packageResources.getString("truncationIndicator");
  116.       }
  117.       
  118.       public function get nestLevel() : int
  119.       {
  120.          return _nestLevel;
  121.       }
  122.       
  123.       public function set nestLevel(param1:int) : void
  124.       {
  125.          if(param1 > 1 && _nestLevel != param1)
  126.          {
  127.             _nestLevel = param1;
  128.             StyleProtoChain.initTextField(this);
  129.             mx_internal::styleChangedFlag = true;
  130.             validateNow();
  131.          }
  132.       }
  133.       
  134.       public function getExplicitOrMeasuredHeight() : Number
  135.       {
  136.          return !isNaN(explicitHeight) ? explicitHeight : measuredHeight;
  137.       }
  138.       
  139.       public function get className() : String
  140.       {
  141.          var _loc1_:String = null;
  142.          var _loc2_:int = 0;
  143.          _loc1_ = getQualifiedClassName(this);
  144.          _loc2_ = int(_loc1_.indexOf("::"));
  145.          if(_loc2_ != -1)
  146.          {
  147.             _loc1_ = _loc1_.substr(_loc2_ + 2);
  148.          }
  149.          return _loc1_;
  150.       }
  151.       
  152.       public function setColor(param1:uint) : void
  153.       {
  154.          mx_internal::explicitColor = param1;
  155.          mx_internal::styleChangedFlag = true;
  156.          invalidateDisplayListFlag = true;
  157.          validateNow();
  158.       }
  159.       
  160.       public function get automationName() : String
  161.       {
  162.          if(_automationName)
  163.          {
  164.             return _automationName;
  165.          }
  166.          if(automationDelegate)
  167.          {
  168.             return automationDelegate.automationName;
  169.          }
  170.          return "";
  171.       }
  172.       
  173.       private function creatingSystemManager() : ISystemManager
  174.       {
  175.          return moduleFactory != null && moduleFactory is ISystemManager ? ISystemManager(moduleFactory) : systemManager;
  176.       }
  177.       
  178.       public function set tweeningProperties(param1:Array) : void
  179.       {
  180.       }
  181.       
  182.       public function invalidateDisplayList() : void
  183.       {
  184.          invalidateDisplayListFlag = true;
  185.       }
  186.       
  187.       public function get focusPane() : Sprite
  188.       {
  189.          return null;
  190.       }
  191.       
  192.       public function getExplicitOrMeasuredWidth() : Number
  193.       {
  194.          return !isNaN(explicitWidth) ? explicitWidth : measuredWidth;
  195.       }
  196.       
  197.       public function getTextStyles() : TextFormat
  198.       {
  199.          var _loc1_:TextFormat = null;
  200.          _loc1_ = new TextFormat();
  201.          _loc1_.align = getStyle("textAlign");
  202.          _loc1_.bold = getStyle("fontWeight") == "bold";
  203.          if(enabled)
  204.          {
  205.             if(mx_internal::explicitColor == StyleManager.NOT_A_COLOR)
  206.             {
  207.                _loc1_.color = getStyle("color");
  208.             }
  209.             else
  210.             {
  211.                _loc1_.color = mx_internal::explicitColor;
  212.             }
  213.          }
  214.          else
  215.          {
  216.             _loc1_.color = getStyle("disabledColor");
  217.          }
  218.          _loc1_.font = StringUtil.trimArrayElements(getStyle("fontFamily"),",");
  219.          _loc1_.indent = getStyle("textIndent");
  220.          _loc1_.italic = getStyle("fontStyle") == "italic";
  221.          _loc1_.kerning = getStyle("kerning");
  222.          _loc1_.leading = getStyle("leading");
  223.          _loc1_.leftMargin = ignorePadding ? 0 : getStyle("paddingLeft");
  224.          _loc1_.letterSpacing = getStyle("letterSpacing");
  225.          _loc1_.rightMargin = ignorePadding ? 0 : getStyle("paddingRight");
  226.          _loc1_.size = getStyle("fontSize");
  227.          _loc1_.underline = getStyle("textDecoration") == "underline";
  228.          cachedTextFormat = _loc1_;
  229.          return _loc1_;
  230.       }
  231.       
  232.       public function get explicitHeight() : Number
  233.       {
  234.          return _explicitHeight;
  235.       }
  236.       
  237.       public function set automationName(param1:String) : void
  238.       {
  239.          _automationName = param1;
  240.       }
  241.       
  242.       public function get percentWidth() : Number
  243.       {
  244.          return NaN;
  245.       }
  246.       
  247.       public function createAutomationIDPart(param1:IAutomationObject) : Object
  248.       {
  249.          return null;
  250.       }
  251.       
  252.       override public function get parent() : DisplayObjectContainer
  253.       {
  254.          return !!mx_internal::_parent ? mx_internal::_parent : super.parent;
  255.       }
  256.       
  257.       public function setActualSize(param1:Number, param2:Number) : void
  258.       {
  259.          if(width != param1)
  260.          {
  261.             width = param1;
  262.          }
  263.          if(height != param2)
  264.          {
  265.             height = param2;
  266.          }
  267.       }
  268.       
  269.       public function set focusPane(param1:Sprite) : void
  270.       {
  271.       }
  272.       
  273.       public function getAutomationChildAt(param1:int) : IAutomationObject
  274.       {
  275.          return null;
  276.       }
  277.       
  278.       public function get inheritingStyles() : Object
  279.       {
  280.          return _inheritingStyles;
  281.       }
  282.       
  283.       public function invalidateProperties() : void
  284.       {
  285.       }
  286.       
  287.       public function get explicitMinWidth() : Number
  288.       {
  289.          return NaN;
  290.       }
  291.       
  292.       public function set explicitHeight(param1:Number) : void
  293.       {
  294.          _explicitHeight = param1;
  295.       }
  296.       
  297.       public function set showInAutomationHierarchy(param1:Boolean) : void
  298.       {
  299.       }
  300.       
  301.       public function set systemManager(param1:ISystemManager) : void
  302.       {
  303.       }
  304.       
  305.       public function get moduleFactory() : IFlexModuleFactory
  306.       {
  307.          return _moduleFactory;
  308.       }
  309.       
  310.       public function set percentWidth(param1:Number) : void
  311.       {
  312.       }
  313.       
  314.       public function get imeMode() : String
  315.       {
  316.          return _imeMode;
  317.       }
  318.       
  319.       public function get document() : Object
  320.       {
  321.          return _document;
  322.       }
  323.       
  324.       public function get explicitMaxWidth() : Number
  325.       {
  326.          return NaN;
  327.       }
  328.       
  329.       public function replayAutomatableEvent(param1:Event) : Boolean
  330.       {
  331.          if(automationDelegate)
  332.          {
  333.             return automationDelegate.replayAutomatableEvent(param1);
  334.          }
  335.          return false;
  336.       }
  337.       
  338.       public function set owner(param1:DisplayObjectContainer) : void
  339.       {
  340.          _owner = param1;
  341.       }
  342.       
  343.       public function set processedDescriptors(param1:Boolean) : void
  344.       {
  345.          _processedDescriptors = param1;
  346.       }
  347.       
  348.       public function get includeInLayout() : Boolean
  349.       {
  350.          return _includeInLayout;
  351.       }
  352.       
  353.       private function changeHandler(param1:Event) : void
  354.       {
  355.          explicitHTMLText = null;
  356.       }
  357.       
  358.       override public function setTextFormat(param1:TextFormat, param2:int = -1, param3:int = -1) : void
  359.       {
  360.          if(styleSheet)
  361.          {
  362.             return;
  363.          }
  364.          super.setTextFormat(param1,param2,param3);
  365.          dispatchEvent(new Event("textFormatChange"));
  366.       }
  367.       
  368.       public function resolveAutomationIDPart(param1:Object) : Array
  369.       {
  370.          return [];
  371.       }
  372.       
  373.       public function set inheritingStyles(param1:Object) : void
  374.       {
  375.          _inheritingStyles = param1;
  376.       }
  377.       
  378.       public function setFocus() : void
  379.       {
  380.          systemManager.stage.focus = this;
  381.       }
  382.       
  383.       public function set initialized(param1:Boolean) : void
  384.       {
  385.          _initialized = param1;
  386.       }
  387.       
  388.       public function owns(param1:DisplayObject) : Boolean
  389.       {
  390.          return param1 == this;
  391.       }
  392.       
  393.       public function setVisible(param1:Boolean, param2:Boolean = false) : void
  394.       {
  395.          this.visible = param1;
  396.       }
  397.       
  398.       public function get nonInheritingStyles() : Object
  399.       {
  400.          return _nonInheritingStyles;
  401.       }
  402.       
  403.       public function get isPopUp() : Boolean
  404.       {
  405.          return false;
  406.       }
  407.       
  408.       public function get percentHeight() : Number
  409.       {
  410.          return NaN;
  411.       }
  412.       
  413.       public function truncateToFit(param1:String = null) : Boolean
  414.       {
  415.          var _loc2_:String = null;
  416.          var _loc3_:Number = NaN;
  417.          var _loc4_:String = null;
  418.          if(!param1)
  419.          {
  420.             param1 = resourceTruncationIndicator;
  421.          }
  422.          validateNow();
  423.          _loc2_ = super.text;
  424.          _loc3_ = width;
  425.          if(_loc2_ != "" && textWidth + mx_internal::TEXT_WIDTH_PADDING > _loc3_)
  426.          {
  427.             _loc4_ = super.text = _loc2_;
  428.             _loc2_.slice(0,Math.floor(_loc3_ / (textWidth + mx_internal::TEXT_WIDTH_PADDING) * _loc2_.length));
  429.             while(_loc4_.length > 1 && textWidth + mx_internal::TEXT_WIDTH_PADDING > _loc3_)
  430.             {
  431.                _loc4_ = _loc4_.slice(0,-1);
  432.                super.text = _loc4_ + param1;
  433.             }
  434.             return true;
  435.          }
  436.          return false;
  437.       }
  438.       
  439.       public function validateNow() : void
  440.       {
  441.          var _loc1_:TextFormat = null;
  442.          var _loc2_:ISystemManager = null;
  443.          if(!parent)
  444.          {
  445.             return;
  446.          }
  447.          if(!isNaN(explicitWidth) && super.width != explicitWidth)
  448.          {
  449.             super.width = explicitWidth > 4 ? explicitWidth : 4;
  450.          }
  451.          if(!isNaN(explicitHeight) && super.height != explicitHeight)
  452.          {
  453.             super.height = explicitHeight;
  454.          }
  455.          if(mx_internal::styleChangedFlag)
  456.          {
  457.             _loc1_ = getTextStyles();
  458.             _loc2_ = creatingSystemManager();
  459.             embedFonts = !!_loc1_.font ? _loc2_ != null && _loc2_.isFontFaceEmbedded(_loc1_) : getStyle("embedFonts");
  460.             antiAliasType = getStyle("fontAntiAliasType");
  461.             gridFitType = getStyle("fontGridFitType");
  462.             sharpness = getStyle("fontSharpness");
  463.             thickness = getStyle("fontThickness");
  464.             if(!styleSheet)
  465.             {
  466.                super.setTextFormat(_loc1_);
  467.                defaultTextFormat = _loc1_;
  468.             }
  469.             dispatchEvent(new Event("textFieldStyleChange"));
  470.          }
  471.          mx_internal::styleChangedFlag = false;
  472.          invalidateDisplayListFlag = false;
  473.       }
  474.       
  475.       public function get ignorePadding() : Boolean
  476.       {
  477.          return _ignorePadding;
  478.       }
  479.       
  480.       public function get automationTabularData() : Object
  481.       {
  482.          return null;
  483.       }
  484.       
  485.       private function textFieldStyleChangeHandler(param1:Event) : void
  486.       {
  487.          if(explicitHTMLText != null)
  488.          {
  489.             super.htmlText = explicitHTMLText;
  490.          }
  491.       }
  492.       
  493.       public function set moduleFactory(param1:IFlexModuleFactory) : void
  494.       {
  495.          _moduleFactory = param1;
  496.       }
  497.       
  498.       public function set imeMode(param1:String) : void
  499.       {
  500.          _imeMode = param1;
  501.       }
  502.       
  503.       public function get measuredMinHeight() : Number
  504.       {
  505.          return 0;
  506.       }
  507.       
  508.       public function get minHeight() : Number
  509.       {
  510.          return 0;
  511.       }
  512.       
  513.       public function get tweeningProperties() : Array
  514.       {
  515.          return null;
  516.       }
  517.       
  518.       public function set document(param1:Object) : void
  519.       {
  520.          _document = param1;
  521.       }
  522.       
  523.       public function set updateCompletePendingFlag(param1:Boolean) : void
  524.       {
  525.          _updateCompletePendingFlag = param1;
  526.       }
  527.       
  528.       public function get explicitMinHeight() : Number
  529.       {
  530.          return NaN;
  531.       }
  532.       
  533.       override public function set text(param1:String) : void
  534.       {
  535.          if(!param1)
  536.          {
  537.             param1 = "";
  538.          }
  539.          if(!isHTML && super.text == param1)
  540.          {
  541.             return;
  542.          }
  543.          super.text = param1;
  544.          explicitHTMLText = null;
  545.          if(invalidateDisplayListFlag)
  546.          {
  547.             validateNow();
  548.          }
  549.       }
  550.       
  551.       public function get numAutomationChildren() : int
  552.       {
  553.          return 0;
  554.       }
  555.       
  556.       public function setStyle(param1:String, param2:*) : void
  557.       {
  558.       }
  559.       
  560.       public function get showInAutomationHierarchy() : Boolean
  561.       {
  562.          return true;
  563.       }
  564.       
  565.       public function get systemManager() : ISystemManager
  566.       {
  567.          var _loc1_:DisplayObject = null;
  568.          var _loc2_:IUIComponent = null;
  569.          _loc1_ = parent;
  570.          while(_loc1_)
  571.          {
  572.             _loc2_ = _loc1_ as IUIComponent;
  573.             if(_loc2_)
  574.             {
  575.                return _loc2_.systemManager;
  576.             }
  577.             _loc1_ = _loc1_.parent;
  578.          }
  579.          return null;
  580.       }
  581.       
  582.       public function get baselinePosition() : Number
  583.       {
  584.          var _loc1_:TextLineMetrics = null;
  585.          _loc1_ = getLineMetrics(0);
  586.          return height - 4 - _loc1_.descent;
  587.       }
  588.       
  589.       public function set enabled(param1:Boolean) : void
  590.       {
  591.          mouseEnabled = param1;
  592.          _enabled = param1;
  593.          styleChanged("color");
  594.       }
  595.       
  596.       public function get minWidth() : Number
  597.       {
  598.          return 0;
  599.       }
  600.       
  601.       public function get automationValue() : Array
  602.       {
  603.          if(automationDelegate)
  604.          {
  605.             return automationDelegate.automationValue;
  606.          }
  607.          return [""];
  608.       }
  609.       
  610.       public function get measuredWidth() : Number
  611.       {
  612.          validateNow();
  613.          return textWidth + mx_internal::TEXT_WIDTH_PADDING;
  614.       }
  615.       
  616.       public function parentChanged(param1:DisplayObjectContainer) : void
  617.       {
  618.          if(!param1)
  619.          {
  620.             mx_internal::_parent = null;
  621.             _nestLevel = 0;
  622.          }
  623.          else if(param1 is IStyleClient)
  624.          {
  625.             mx_internal::_parent = param1;
  626.          }
  627.          else if(param1 is SystemManager)
  628.          {
  629.             mx_internal::_parent = param1;
  630.          }
  631.          else
  632.          {
  633.             mx_internal::_parent = param1.parent;
  634.          }
  635.       }
  636.       
  637.       public function get processedDescriptors() : Boolean
  638.       {
  639.          return _processedDescriptors;
  640.       }
  641.       
  642.       public function get owner() : DisplayObjectContainer
  643.       {
  644.          return !!_owner ? _owner : parent;
  645.       }
  646.       
  647.       public function get maxWidth() : Number
  648.       {
  649.          return UIComponent.DEFAULT_MAX_WIDTH;
  650.       }
  651.       
  652.       public function get initialized() : Boolean
  653.       {
  654.          return _initialized;
  655.       }
  656.       
  657.       public function set includeInLayout(param1:Boolean) : void
  658.       {
  659.          var _loc2_:IInvalidating = null;
  660.          if(_includeInLayout != param1)
  661.          {
  662.             _includeInLayout = param1;
  663.             _loc2_ = parent as IInvalidating;
  664.             if(_loc2_)
  665.             {
  666.                _loc2_.invalidateSize();
  667.                _loc2_.invalidateDisplayList();
  668.             }
  669.          }
  670.       }
  671.       
  672.       override public function set htmlText(param1:String) : void
  673.       {
  674.          if(!param1)
  675.          {
  676.             param1 = "";
  677.          }
  678.          if(isHTML && super.htmlText == param1)
  679.          {
  680.             return;
  681.          }
  682.          if(Boolean(cachedTextFormat) && styleSheet == null)
  683.          {
  684.             defaultTextFormat = cachedTextFormat;
  685.          }
  686.          super.htmlText = param1;
  687.          explicitHTMLText = param1;
  688.          if(invalidateDisplayListFlag)
  689.          {
  690.             validateNow();
  691.          }
  692.       }
  693.       
  694.       public function set measuredMinWidth(param1:Number) : void
  695.       {
  696.       }
  697.       
  698.       public function get updateCompletePendingFlag() : Boolean
  699.       {
  700.          return _updateCompletePendingFlag;
  701.       }
  702.       
  703.       public function get enabled() : Boolean
  704.       {
  705.          return _enabled;
  706.       }
  707.       
  708.       public function set nonInheritingStyles(param1:Object) : void
  709.       {
  710.          _nonInheritingStyles = param1;
  711.       }
  712.       
  713.       public function set automationDelegate(param1:Object) : void
  714.       {
  715.          _automationDelegate = param1 as IAutomationObject;
  716.       }
  717.       
  718.       public function get measuredMinWidth() : Number
  719.       {
  720.          return 0;
  721.       }
  722.       
  723.       public function set isPopUp(param1:Boolean) : void
  724.       {
  725.       }
  726.       
  727.       public function get measuredHeight() : Number
  728.       {
  729.          validateNow();
  730.          return textHeight + mx_internal::TEXT_HEIGHT_PADDING;
  731.       }
  732.       
  733.       public function getUITextFormat() : UITextFormat
  734.       {
  735.          var _loc1_:UITextFormat = null;
  736.          validateNow();
  737.          _loc1_ = new UITextFormat(creatingSystemManager());
  738.          _loc1_.mx_internal::copyFrom(getTextFormat());
  739.          _loc1_.antiAliasType = antiAliasType;
  740.          _loc1_.gridFitType = gridFitType;
  741.          _loc1_.sharpness = sharpness;
  742.          _loc1_.thickness = thickness;
  743.          return _loc1_;
  744.       }
  745.       
  746.       public function initialize() : void
  747.       {
  748.       }
  749.       
  750.       public function set percentHeight(param1:Number) : void
  751.       {
  752.       }
  753.       
  754.       public function get maxHeight() : Number
  755.       {
  756.          return UIComponent.DEFAULT_MAX_HEIGHT;
  757.       }
  758.       
  759.       public function set styleName(param1:Object) : void
  760.       {
  761.          if(_styleName === param1)
  762.          {
  763.             return;
  764.          }
  765.          _styleName = param1;
  766.          if(parent)
  767.          {
  768.             StyleProtoChain.initTextField(this);
  769.             styleChanged("styleName");
  770.          }
  771.       }
  772.       
  773.       public function get automationDelegate() : Object
  774.       {
  775.          return _automationDelegate;
  776.       }
  777.       
  778.       public function set ignorePadding(param1:Boolean) : void
  779.       {
  780.          _ignorePadding = param1;
  781.          styleChanged(null);
  782.       }
  783.       
  784.       public function set toolTip(param1:String) : void
  785.       {
  786.          ToolTipManager.mx_internal::registerToolTip(this,param1);
  787.          _toolTip = param1;
  788.       }
  789.       
  790.       public function styleChanged(param1:String) : void
  791.       {
  792.          mx_internal::styleChangedFlag = true;
  793.          if(!invalidateDisplayListFlag)
  794.          {
  795.             invalidateDisplayListFlag = true;
  796.             UIComponent(parent).callLater(validateNow);
  797.          }
  798.       }
  799.       
  800.       private function get isHTML() : Boolean
  801.       {
  802.          return explicitHTMLText != null;
  803.       }
  804.       
  805.       public function get explicitMaxHeight() : Number
  806.       {
  807.          return NaN;
  808.       }
  809.       
  810.       public function invalidateSize() : void
  811.       {
  812.          invalidateDisplayListFlag = true;
  813.       }
  814.       
  815.       public function set explicitWidth(param1:Number) : void
  816.       {
  817.          _explicitWidth = param1;
  818.       }
  819.       
  820.       public function move(param1:Number, param2:Number) : void
  821.       {
  822.          if(this.x != param1)
  823.          {
  824.             this.x = param1;
  825.          }
  826.          if(this.y != param2)
  827.          {
  828.             this.y = param2;
  829.          }
  830.       }
  831.       
  832.       public function get toolTip() : String
  833.       {
  834.          return _toolTip;
  835.       }
  836.       
  837.       public function set measuredMinHeight(param1:Number) : void
  838.       {
  839.       }
  840.       
  841.       public function get explicitWidth() : Number
  842.       {
  843.          return _explicitWidth;
  844.       }
  845.       
  846.       public function getStyle(param1:String) : *
  847.       {
  848.          if(StyleManager.mx_internal::inheritingStyles[param1])
  849.          {
  850.             return !!inheritingStyles ? inheritingStyles[param1] : IStyleClient(parent).getStyle(param1);
  851.          }
  852.          return !!nonInheritingStyles ? nonInheritingStyles[param1] : IStyleClient(parent).getStyle(param1);
  853.       }
  854.       
  855.       public function get styleName() : Object
  856.       {
  857.          return _styleName;
  858.       }
  859.    }
  860. }
  861.  
  862.